import type { RouteConfig } from '../../typings/router';
import authController from '../controllers/auth';

/**
 * 认证模块路由
 */
const authRoutes: RouteConfig[] = [
    {
        method: 'post',
        name: 'login',
        path: '/auth/login',
        middlewares: [authController.loginAction],
    },
    {
        method: 'post',
        name: 'logout',
        path: '/auth/logout',
        middlewares: [authController.logoutAction],
    },
];

export default authRoutes;
